<?php
require_once('session.php');
require_once('inc/conn.php');

if($_GET['deal'] == "yes"){
    mysql_query("UPDATE liuyan SET deal='是' WHERE id='".$_GET['id']."'");
    echo "<script>alert('已设置为【已处理】');window.location.href='liuyanlist.php';</script>";
}

if($_GET['deal'] == "no"){
    mysql_query("UPDATE liuyan SET deal='否' WHERE id='".$_GET['id']."'");
    echo "<script>alert('已设置为【未处理】');window.location.href='liuyanlist.php';</script>";
}

mysql_close($conn);
?>